package com.wanmait.zaisousuo.service;

import com.github.pagehelper.PageInfo;
import com.wanmait.zaisousuo.pojo.Answer;

import java.util.List;

public interface AnswerService extends CommonService<Answer>{
    PageInfo<Answer> findByQuestionId(Integer questionId,Integer pageNum);

    void answerAccepted(Answer answer);

    List<Answer> findByQuestion(Integer questionId);

    Integer updateDisabled(Integer id,boolean disabled);

    PageInfo<Answer> findByUserId(Integer pageNum,Integer id);

    void recover(String ids);
}
